#ifndef _SPI0_H_
#define _SPI0_H_

#define SPI0DEV_NAME "/dev/spidev0.0"

class spi0
{
private:
    static unsigned char mode;
    static unsigned char bits;
    static unsigned int speed;

    static int CS0Valuefd;
public:
    spi0(/* args */);
    ~spi0();

    static void spiInit();
    static void spi0_CS0_init();
    void spi0_CS0_enable();
    void spi0_CS0_disable();
    int SPI_Transfers(unsigned char *tx,unsigned char *rx,unsigned int len);
    static int spi0fd;
};





#endif